package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Question;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.QuestionQueryObject;
import com.github.pagehelper.PageInfo;

public interface IQuestionService {

    /**
     * 保存问题
     * @param question
     * @return
     */
    void save(Question question);


    /**
     * 查询所有问题
     * @param qo
     * @return
     */
    PageInfo<Question> queryForQuestionList(QuestionQueryObject qo);
    /**
     * 查询当前问题
     * @param qo
     * @return
     */
    Question queryForReply(QuestionQueryObject qo);
}
